package com.yk.framework.gui.wf.model;

import java.util.UUID;

/**
 * @author lifetime
 * 
 */
public class WFNode {
	public static String ID_drawLine = "ID_drawLine";
	public static String ID_drawPerson = "ID_drawPerson";
	public static String ID_drawScript = "ID_drawScript";
	public static String ID_luyou = "ID_luyou";
	public static String ID_cancelOperate = "ID_cancelOperate";
	public static String ID_reback = "ID_reback";
	public static String ID_flushAllLine = "ID_flushAllLine";
	public static String ID_publishYKWorkflow = "ID_publishYKWorkflow";
	public static String ID_delete = "ID_delete";
	public static String ID_workflowExport = "ID_workflowExport";
	
	private String name;
	private String iconName;
	private String id;
	private String nodeType;

	public WFNode() {
		this.id = UUID.randomUUID().toString();
	}

	public WFNode(String name, String iconName) {
		this.name = name;
		this.iconName = iconName;
		this.id = UUID.randomUUID().toString();
	}

	public WFNode(String name,String type, String iconName, String id) {
		this.name = name;
		this.iconName = iconName;
		this.id = id;
		this.nodeType = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconName() {
		return iconName;
	}

	public void setIconName(String iconName) {
		this.iconName = iconName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNodeType() {
		return nodeType;
	}

	public void setNodeType(String nodeType) {
		this.nodeType = nodeType;
	}

}
